package com.android.takeaway.bean;

import java.io.Serializable;
import java.math.BigDecimal;


// Java对象——（序列化）——>二进制对象文件【反之为：反序列化】
public class Food implements Serializable {
    private static final long serialVersionUID = 1L; //序列化时保持ShopBean类版本的兼容性
    private int foodId;           //食品ID
    private String foodName;      //食品名称
    private String taste;         //食品口味
    private int saleNum;          //食品销量
    private BigDecimal price;     //可以进行高精度计算价格
    private int count;            //食品在购物车里面的数量
    private String foodPic;       //食品图片



    public Food(int foodId, String foodName, String taste, int saleNum, BigDecimal price, int count, String foodPic) {
        this.foodId = foodId;
        this.foodName = foodName;
        this.taste = taste;
        this.saleNum = saleNum;
        this.price = price;
        this.count = count;
        this.foodPic = foodPic;
    }

    public int getFoodId() {
        return foodId;
    }

    public void setFoodId(int foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getTaste() {
        return taste;
    }

    public void setTaste(String taste) {
        this.taste = taste;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getFoodPic() {
        return foodPic;
    }

    public void setFoodPic(String foodPic) {
        this.foodPic = foodPic;
    }
}
